import request from '@/utils/request'

// 查询客户物料对应表列表 - 分页
export function queryCustmatmappingList(data) {
  return request({
    url: '/Custmatmapping/queryCustmatmappingList',
    method: 'post',
    data
  })
}
// 查询客户物料对应表明细
export function queryCustmatmappingEntry(params) {
  return request({
    url: '/Custmatmapping/queryCustmatmappingEntry',
    method: 'get',
    params
  })
}
// 新增客户物料对应表
export function insertCustmat(data) {
  return request({
    url: '/Custmatmapping/insertCustmat',
    method: 'put',
    data
  })
}
// 修改客户物料对应表
export function updateCustmat(data) {
  return request({
    url: '/Custmatmapping/updateCustmat',
    method: 'put',
    data
  })
}
// 删除客户物料对应表
export function deleteCustmat(data) {
  return request({
    url: '/Custmatmapping/deleteCustmat',
    method: 'delete',
    data
  })
}
// 反审核客户物料对应表
export function custmatUnAudit(data) {
  return request({
    url: '/Custmatmapping/custmatUnAudit',
    method: 'put',
    data
  })
}
// 审核客户物料对应表
export function custmatAudit(data) {
  return request({
    url: '/Custmatmapping/custmatAudit',
    method: 'put',
    data
  })
}
// 反提交客户物料对应表
export function custmatAuSubmit(data) {
  return request({
    url: '/Custmatmapping/custmatAuSubmit',
    method: 'put',
    data
  })
}
// 提交客户物料对应表
export function custmatSubmit(data) {
  return request({
    url: '/Custmatmapping/custmatSubmit',
    method: 'put',
    data
  })
}
// 物料单位换算列表
export function queryUnitconvertrateList(data) {
  return request({
    url: '/tBdUnitconvertrate/queryUnitconvertrateList',
    method: 'post',
    data
  })
}
// 物料单位反审核
export function unitUnAudit(data) {
  return request({
    url: '/tBdUnitconvertrate/unitUnAudit',
    method: 'post',
    data
  })
}
// 物料单位审核
export function unitAudit(data) {
  return request({
    url: '/tBdUnitconvertrate/unitAudit',
    method: 'post',
    data
  })
}
// 物料单位反提交
export function unitUnSubmit(data) {
  return request({
    url: '/tBdUnitconvertrate/unitUnSubmit',
    method: 'post',
    data
  })
}
// 物料单位提交
export function unitSubmit(data) {
  return request({
    url: '/tBdUnitconvertrate/unitSubmit',
    method: 'post',
    data
  })
}
// 物料单位反禁用
export function unitUnDisable(data) {
  return request({
    url: '/tBdUnitconvertrate/unitUnDisable',
    method: 'post',
    data
  })
}
// 物料单位禁用
export function unitDisable(data) {
  return request({
    url: '/tBdUnitconvertrate/unitDisable',
    method: 'post',
    data
  })
}
// 物料单位删除
export function deleteUnit(data) {
  return request({
    url: '/tBdUnitconvertrate/deleteUnit',
    method: 'delete',
    data
  })
}
// 物料单位新增
export function insretUnit(data) {
  return request({
    url: '/tBdUnitconvertrate/insretUnit',
    method: 'post',
    data
  })
}
// 物料单位修改
export function updateUnit(data) {
  return request({
    url: '/tBdUnitconvertrate/updateUnit',
    method: 'post',
    data
  })
}
// 物料单位详情
export function queryUnitDetail(params) {
  return request({
    url: '/tBdUnitconvertrate/queryUnitDetail',
    method: 'get',
    params
  })
}
